package com.py.customers.domain;

import java.util.Date;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 客户信息对象 bs_customers
 * 
 * @author py
 * @date 2024-11-22
 */
public class BsCustomers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 所属行业 */
    @Excel(name = "所属行业")
    private String industry;

    /** 客户来源 */
    @Excel(name = "客户来源")
    private String source;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 销售部门 */
    @Excel(name = "销售部门")
    private int salesDepartment;

    /** 销售负责人ID */
    @Excel(name = "销售负责人ID")
    private String salesPersonId;

    /** 客户地址 */
    @Excel(name = "客户地址")
    private String customerAddress;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public String getCreatePersonId() {
        return createPersonId;
    }

    public void setCreatePersonId(String createPersonId) {
        this.createPersonId = createPersonId;
    }

    /** 创建人ID */
    @Excel(name = "制单人")
    private String createPersonId;



    /** 更新人ID */
    private String updatePersonId;

    /** 逻辑删除标志，0为未删除，1为已删除 */
    private Integer isDeleted;

    /** 状态（0启用，1停用） */
    @Excel(name = "状态", readConverterExp = "0=启用，1停用")
    private Long status;

    public Integer number;//自动编码
    public Integer codeId;


    /** 创建时间 */
    private Date createTime;

   private Date  updateTime; //更新时间
    @Transient
    private String deptName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdate_time() {
        return updateTime;
    }

    public void setUpdate_time(Date update_time) {
        this.updateTime = update_time;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    /** 更新时间 */
    private Date updatedAt;

    /** 伪删除 */


    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getCodeId() {
        return codeId;
    }

    public void setCodeId(Integer codeId) {
        this.codeId = codeId;
    }

    /** 财务信息信息 */
    private List<PyAccount> pyAccountList;

    public PyAccount pyAccount;//财务表

    public PyAccount getPyAccount() {
        return pyAccount;
    }

    public void setPyAccount(PyAccount pyAccount) {
        this.pyAccount = pyAccount;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setIndustry(String industry) 
    {
        this.industry = industry;
    }

    public String getIndustry() 
    {
        return industry;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public int getSalesDepartment() {
        return salesDepartment;
    }

    public void setSalesDepartment(int salesDepartment) {
        this.salesDepartment = salesDepartment;
    }

    public String getSalesPersonId() {
        return salesPersonId;
    }

    public void setSalesPersonId(String salesPersonId) {
        this.salesPersonId = salesPersonId;
    }

    public void setCustomerAddress(String customerAddress)
    {
        this.customerAddress = customerAddress;
    }

    public String getCustomerAddress() 
    {
        return customerAddress;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }




    @Override
    public Date getUpdateTime() {
            return updateTime;
        }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdatePersonId() {
        return updatePersonId;
    }

    public void setUpdatePersonId(String updatePersonId) {
        this.updatePersonId = updatePersonId;
    }

    public void setIsDeleted(Integer isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public List<PyAccount> getPyAccountList()
    {
        return pyAccountList;
    }

    public void setPyAccountList(List<PyAccount> pyAccountList)
    {
        this.pyAccountList = pyAccountList;
    }

    @Override
    public String toString() {
        return "BsCustomers{" +
                "id=" + id +
                ", customerId='" + customerId + '\'' +
                ", customerName='" + customerName + '\'' +
                ", industry='" + industry + '\'' +
                ", source='" + source + '\'' +
                ", contactPerson='" + contactPerson + '\'' +
                ", email='" + email + '\'' +
                ", salesDepartment=" + salesDepartment +
                ", salesPersonId=" + salesPersonId +
                ", customerAddress='" + customerAddress + '\'' +
                ", notes='" + notes + '\'' +
                ", createPersonId='" + createPersonId + '\'' +
                ", updatePersonId='" + updatePersonId + '\'' +
                ", isDeleted=" + isDeleted +
                ", status=" + status +
                ", number=" + number +
                ", codeId=" + codeId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", deptName='" + deptName + '\'' +
                ", updatedAt=" + updatedAt +
                ", pyAccountList=" + pyAccountList +
                ", pyAccount=" + pyAccount +
                '}';
    }
}
